Developer Documentation

QuickTime 4 API Documentation

Inside Macintosh: QuickTime Components

Previous | Overview | Contents | Next |

Handling Events

The PreviewEvent function is provided so that your preview component can do standard event filtering. See Inside Macintosh: Files for details on the standard dialog event filter function.

PreviewEvent

If your preview component handles events, the PreviewEvent function is called as appropriate.

pascal ComponentResult PreviewEvent (pnotComponent p,
                                          EventRecord *e,
                                          Boolean *handledEvent);
p
Specifies your preview component. You obtain this identifier from the Component Manager's OpenComponent function. See the chapter "Component Manager" in Inside Macintosh: More Macintosh Toolbox for details.

e
Contains a pointer to the event structure for this operation.

handledEvent
Contains a pointer to a Boolean value. If you completely handle an event such as a mouse-down event or keystroke, you should set the handledEvent parameter to true . Otherwise, set it to false .


© 1999 Apple Computer, Inc.

Previous | Overview | Contents | Next